<#import "/common/taglibs/spring.ftl" as spring/>
<#macro menuUrl url>
<#if url??>
    <#if url?starts_with('/')>
        <#if ctx != ''>
            <#assign xurl = ctx + url/>
        <#else>
            <#assign xurl = url/>
        </#if>
    <#else>
        <#assign xurl = url/>
        <#assign xurl = (xurl?replace('{resource}', '${resource!}'))/>
        <#assign xurl = (xurl?replace('{static}', '${static!}'))/>
    </#if>
</#if>${xurl!}</#macro>